﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PFAGame.NetworkingGame
{
    class LootFactory
    {
        public static ALoot Create(AObject.e_object lootType)
        {
            ALoot newLoot;

            switch (lootType)
            {
                case AObject.e_object.ARMOR:
                    newLoot = new Armor();
                    break;
                case AObject.e_object.BERSERKER:
                    newLoot = new Berserker();
                    break;
                case AObject.e_object.HEAL:
                    newLoot = new Heal();
                    break;
                default:
                    newLoot = new Armor();
                    break;
            }
            return newLoot;
        }
    }
}
